package ldzy;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import java.io.PrintWriter;

public class LuanMa extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    System.out.println("luanma");
    response.setContentType("text/html;charset=utf-8");
    ServletConfig config=this.getServletConfig();
    String ldzy=config.getInitParameter("namespace");
    System.out.println(ldzy);
        PrintWriter printWriter=response.getWriter();
        printWriter.write("中国"+ldzy);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
